To begin with, I am creating a program which uses file streams to save data and then reload it at a later date. My program works fine when run from a module however, it really needs to work properly when run from the Explorer. The problem I am running into is that the directory that the Explorer points to is the folder in which the dxl files are located however the current directory when the program is run from a module is my desktop. Thus, when run from the Explorer it creates a secound file in the dxl directory and cannot "see" the file on the desktop. Is there anyway to change what Windows directory is being pointed at currently?
|
Re: DOORS Explorer Directory Try absolute pathnames instead of relative ones, i.e. instead of Stream out = write "myFile.txt" use something like Stream out = write "C:\\Documents and Settings\\YourName\\Desktop\\myFile.txt"
(note that you have to escape the backslashes --> "\\" |
Re: DOORS Explorer Directory Peter_Albert - Thu Jan 14 11:28:43 EST 2010 Try absolute pathnames instead of relative ones, i.e. instead of Stream out = write "myFile.txt" use something like Stream out = write "C:\\Documents and Settings\\YourName\\Desktop\\myFile.txt"
(note that you have to escape the backslashes --> "\\" |
Re: DOORS Explorer Directory rp17 - Thu Jan 14 12:25:18 EST 2010 |